/* ===============================================================
   FACILITIES PAGE – Premium Redesign
   PT Indal Steel Pipe
=============================================================== */

/* ================= OVERVIEW ================= */

.facility-overview {
  padding: 90px 0;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.facility-overview::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: var(--bg-light);
  clip-path: polygon(12% 0%, 100% 0%, 100% 100%, 0% 100%);
  z-index: 0;
}

.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.overview-text .section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  background: var(--accent-light);
  padding: 5px 16px;
  border-radius: 50px;
}

.overview-text h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.overview-text p {
  font-size: 0.97rem;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 16px;
}

.overview-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-premium);
}

.overview-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 0 1.5px rgba(139, 26, 26, 0.12);
  pointer-events: none;
  z-index: 2;
}

.overview-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease;
}

.overview-image:hover img {
  transform: scale(1.04);
}

/* ================= PRODUCTION ================= */

.facility-production {
  padding: 100px 0;
  background: var(--bg-light);
}

.facility-production .section-header {
  margin-bottom: 50px;
}

.production-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.production-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  cursor: pointer;
}

.production-card img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}

.production-card:hover img {
  transform: scale(1.07);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
  color: #fff;
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: background 0.4s ease;
}

.production-card:hover .card-overlay {
  background: linear-gradient(to top, rgba(139, 26, 26, 0.85) 0%, rgba(0, 0, 0, 0.5) 55%, transparent 100%);
}

.card-overlay h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.card-overlay p {
  font-size: 0.9rem;
  opacity: 0.85;
  line-height: 1.55;
}

/* Production Card Number Badge */
.production-card::before {
  content: attr(data-num);
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(139, 26, 26, 0.4);
}

/* ================= QUALITY ================= */

.facility-quality {
  padding: 100px 0;
  background: var(--bg);
}

.quality-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.quality-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-premium);
}

.quality-image img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease;
}

.quality-image:hover img {
  transform: scale(1.04);
}

.quality-text .section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  background: var(--accent-light);
  padding: 5px 16px;
  border-radius: 50px;
}

.quality-text h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 28px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.quality-text ul {
  list-style: none;
  padding: 0;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quality-text li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
  transition: all 0.25s ease;
  cursor: default;
}

.quality-text li:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateX(4px);
}

.quality-text li::before {
  content: '';
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-light);
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%238B1A1A'%3E%3Cpath d='M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px;
}

/* ================= WAREHOUSE ================= */

.facility-warehouse {
  padding: 100px 0;
  background: var(--bg-light);
  position: relative;
  overflow: hidden;
}

.facility-warehouse .section-header {
  margin-bottom: 50px;
}

.warehouse-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-premium);
  transition: var(--transition);
}

.warehouse-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.75) 0%,
      rgba(0, 0, 0, 0.2) 45%,
      transparent 100%);
  z-index: 1;
}

.warehouse-image img {
  width: 100%;
  height: 540px;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}

.warehouse-image:hover img {
  transform: scale(1.04);
}

.warehouse-overlay-content {
  position: absolute;
  bottom: 50px;
  left: 50px;
  color: #fff;
  max-width: 560px;
  z-index: 2;
}

.warehouse-overlay-content h3 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
  letter-spacing: -0.02em;
}

.warehouse-overlay-content p {
  font-size: 1.05rem;
  line-height: 1.7;
  opacity: 0.9;
}

/* ====== RESPONSIVE ====== */

@media (max-width: 1024px) {

  .overview-grid,
  .quality-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .facility-overview::before {
    display: none;
  }

  .production-grid {
    grid-template-columns: 1fr 1fr;
  }

  .overview-image img,
  .quality-image img {
    height: 350px;
  }

  .warehouse-image img {
    height: 420px;
  }
}

@media (max-width: 768px) {
  .page-hero {
    height: 70vh;
    min-height: 480px;
  }

  .facility-overview,
  .facility-production,
  .facility-quality,
  .facility-warehouse {
    padding: 70px 0;
  }

  .production-grid {
    grid-template-columns: 1fr;
  }

  .production-card img {
    height: 280px;
  }

  .warehouse-image img {
    height: 320px;
  }

  .warehouse-overlay-content {
    left: 24px;
    bottom: 28px;
    right: 24px;
    max-width: none;
  }

  .warehouse-overlay-content h3 {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .page-hero {
    height: 65vh;
    min-height: 420px;
  }

  .hero-label-premium {
    font-size: 11px;
    padding: 6px 14px;
    letter-spacing: 1px;
  }

  .page-hero-content h1 {
    font-size: 2rem;
  }

  .overview-image img,
  .quality-image img,
  .warehouse-image img {
    height: 240px;
  }

  .warehouse-overlay-content h3 {
    font-size: 1.2rem;
  }
}



/* ================= HERO CHIPS ================= */
.facilities-hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.hero-chip i {
  color: var(--accent);
  font-size: 14px;
}

.hero-chip:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

  .facilities-hero-chips {
    justify-content: center;
  }
